package org.lanqiao.tjut.seriver.impl;

import java.util.List;

import javax.annotation.Resource;

import org.lanqiao.tjut.bean.UserBean;
import org.lanqiao.tjut.dao.UserDao;
import org.lanqiao.tjut.seriver.UserService;
import org.springframework.stereotype.Service;

@Service("UserService")
public class UserInfoService implements UserService {
	@Resource
	private UserDao userDao;

	@Override
	public UserBean selectByUserIndex(String userIndex) {

		return userDao.selectByUserIndex(userIndex);
	}

	@Override
	public UserBean selectByUserAccount(String userAccount) {

		return userDao.selectByUserAccount(userAccount);
	}

	@Override
	public List<UserBean> selectAllUsers() {

		return userDao.selectAllUsers();
	}

	@Override
	public int insertUserInfo(UserBean userB) {

		return userDao.insertUserInfo(userB);
	}

	@Override
	public int updateUserByIndex(UserBean userB) {

		return userDao.updateUserByIndex(userB);
	}

	@Override
	public List<UserBean> selectUserInfoDynamic(UserBean userB) {

		return userDao.selectUserInfoDynamic(userB);
	}

	@Override
	public int deleteByUserIndex(UserBean userB) {

		return userDao.deleteByUserIndex(userB);
	}

}
